#include "StdAfx.h"
#include "Command.h"
#include "Player.h"
#include <iostream>

void Command::DisplayText(string text)
{
	cout << text << endl;
}

string Command::GetTypedCommand()
{
	string command;
	getline(cin,command);
	return command;
}

bool Command::Parse(string typedCommand)
{
	if (GetCommandWord() == typedCommand)
	{
		DoAction();
		return true;
	}
	return false;
}

